using System.Collections.Generic;
using UnityEngine;

public class UIIndicatorManager : MonoBehaviour
{
	public UIIndicator prefab;

	private List<UIIndicator> _indicators = new List<UIIndicator>();

	public void AddIndicator(Transform center, Hole target)
	{
		UIIndicator uIIndicator = UnityEngine.Object.Instantiate(prefab, base.transform.parent);
		uIIndicator.gameObject.SetActive(value: true);
		uIIndicator.SetTarget(target);
		_indicators.Add(uIIndicator);
	}

	private void Update()
	{
		foreach (UIIndicator indicator in _indicators)
		{
			indicator.UpdatePosition();
		}
	}
}
